package fr.soat.agileconference2010.etatglobal;

import fr.soat.agileconference2010.etatglobal.metier.MachineEau;

public class Robinet {
	private final static Robinet robinet = new Robinet();
	private boolean estOuvert = false;
	
	private Robinet() {
	  
	}
	
	public static Robinet getInstance(){
		return robinet;
	}
	
	public void ouvrir(){
		estOuvert = true;
	}
	
	public void fermer(){
		estOuvert = false;
	}
	
	
	public void connecter(MachineEau machine) {
	  
	}
	
	public boolean estOuvert() {
	  return estOuvert;
	}
	
	public boolean estConnecte(MachineEau machine) {
	  return true;
	}
}
